<template>
  <van-popup position="top" :overlay="false" v-model="isError">{{ errorMessage }}</van-popup>
</template>

<script type="text/babel">
  export default {
    name: 'ErrorPopup',
    props: {
      isError: Boolean,
      errorMessage: String
    }
  };
</script>

<style scoped lang="less">
  .van-popup {
    padding: 0 30px;
    width: 100%;
    height: 90px;
    line-height: 90px;
    background-color: rgba(0, 0, 0, .7);
    color: #fff;
    font-size: 30px;
  }
</style>